<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const handleExperienceClick = () => {
  router.push('/user/homepagesquare')
}
</script>

<template>
  <div class="home-section">
    <div class="home-section-content">
      <div class="section-header">
        <div class="line left-line" />
        <h2 class="title">
          智链iLink
        </h2>
        <div class="line right-line" />
      </div>
      <div class="description">
        <p style="margin-bottom: -70px;">
          一键接入业界N+主流大模型，轻松搭建发布自己的大模型垂域创新应用。助力大学生开展大模型创新实践，让青春创意
        </p>
        <p>
          插上大模型的翅膀，充分释放大学生创新的无限可能！
        </p>
      </div>
      <div class="buttons">
        <button class="experience-button" @click="handleExperienceClick">
          立即体验
        </button>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.home-section {
  width: 1920px;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  background-image: url('@/assets/61.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: -260px;
}

.home-section-content {
  width: 828px;
  text-align: center;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.line {
  width: 107px;
  height: 0;
  border: 1px solid;
  opacity: 1;
}

.left-line {
  border-image-source: linear-gradient(270deg, rgba(102, 102, 102, 0) 0%, #000000 100%);
  border-image-slice: 1;
  transform: rotate(180deg);
  margin-right: 20px;
  margin-top: 20px;
}

.right-line {
  border-image-source: linear-gradient(270deg, rgba(102, 102, 102, 0) 0%, #000000 100%);
  border-image-slice: 1;
  margin-left: 20px;
  margin-top: 20px;
}

.title {
  font-family: 'Alimama ShuHeiTi', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 53.94px;
  color: #3f3f3f;
  white-space: nowrap;
}

.description {
  width: 1000px;
  font-family: 'Alibaba PuHuiTi', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 21.95px;
  color: #86869f;
  text-align: center;
  margin-top: 50px;
  margin-left: -70px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.experience-button,
.innovation-button {
  width: 228px;
  height: 72px;
  padding: 10px 0;
  border-radius: 20px;
  font-size: 24px;
  font-family: 'PingFang HK', sans-serif;
  font-weight: 500;
  line-height: 33.6px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.experience-button {
  background: linear-gradient(100.12deg, #4b79db 0%, #3bbafc 100%);
  color: white;
  box-shadow: 0px 4px 24px 0px rgba(84, 193, 255, 0.56);
  border: none;
  margin-right: 20px;
}

.innovation-button {
  background: rgba(255, 255, 255, 0.6);
  color: #417eff;
  border: 2.5px solid;
  box-shadow: 0px 4px 13px 0px rgba(84, 193, 255, 0.56);
}

.experience-button:hover,
.innovation-button:hover {
  opacity: 0.8;
}
</style>
